<template>
    <div>
        <Modal v-model="showModal" width="600" @on-cancel="rightClose" draggable>
        </Modal>
    </div>
</template>

<script>
export default ({
    name: 'xxxx',
    props: {
        isShow: {
            type: Boolean
        }, 
        deploy_name: {
            type: String
        },
        // toleration:{
        //     type: Object,
        //     default: ()=>{
        //         return {}
        //     }
        // },
    },
    data() {
        return {
            showModal: false
        }
    },
    methods: {
        rightClose() {
            this.$emit('closeModal')
        },
        submit_xxx() {

        },
    },
    mounted: function() {
        // this.init()
    },
    watch: {
        isShow(newVal,oldVal) {
            console.log("监听到isShow变化"+newVal,oldVal)
            this.showModal = newVal
        }
    }
})


</script>
